// 管理组件状态
import { createStore } from 'vuex'



export default createStore({
  state: {
    hasAnimated: {
      hasAnimats: true,
      name: ""
    }
  },
  mutations: {
    showAnimation(state, n) {
      state.hasAnimated.hasAnimats = n.hasAnimats;
      state.hasAnimated.name = n.name
    }
  }
})